import request from '@/utils/request'

// 封装获取图形验证码的接口
export const imgLogin= ()=>{
  return request.get('/captcha/image')
}
// 封装 获取验证码登录接口
export const verifyLogin = ({captchaCode,captchaKey,mobile})=>{
  return request.post('/captcha/sendSmsCaptcha',{form:{mobile,captchaKey,captchaCode}})
}

// 封装登录 接口

export const loginYes=({smsCode,mobile})=>{
  return request.post('/passport/login',{
    "form": {
      smsCode,
      mobile,
      "isParty": false,
      "partyData": {}
  }
  })
}